package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.model.entity.pure.PureProductSku;
import com.atmilan.quartz.mapper.PureProductSkuMapper;
import com.atmilan.quartz.service.IPureProductSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuzp
 * @since 2021-12-07
 */
@Service
public class PureProductSkuServiceImpl extends ServiceImpl<PureProductSkuMapper, PureProductSku> implements IPureProductSkuService {

    @Autowired
    PureProductSkuMapper pureProductSkuMapper;

    @Override
    public void deleteAll() {
        pureProductSkuMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        pureProductSkuMapper.deleteProductBack();
        pureProductSkuMapper.copyProductBack();
    }

}
